<?php
namespace app\common\validate;
use think\Validate;
class UserWithdraw extends Validate
{
    protected $rule    = [
        'money' => 'require|float',
        'fee' => 'require|float',
        'real_money' => 'require|float',
        'user_id' => 'require|integer',
    ];
    protected $message = [
        'money.require' => '金额不能为空',
        'money.float' => '请输入正确的金额',
        'fee.require' => '金额不能为空',
        'fee.float' => '请输入正确的金额',
        'real_money.require' => '金额不能为空',
        'real_money.float' => '请输入正确的金额',
        'user_id.require' => 'ID不能为空',
        'user_id.integer' => '请输入正确的ID',
    ];
}
